export default {
  set_global_error_show (state, isshow) {
    state.global_error_show = isshow
  },
  set_global_error_text (state, text) {
    state.global_error_text = text
  },
  add_user_report_select_times (state, time) {
    state.user_report_select_times.push(time)
  },
  empty_user_report_select_times (state) {
    state.user_report_select_times = []
  },
  add_user_report_upload_items (state, item) {
    state.user_report_upload_items.push(item)
  },
  del_user_report_upload_items (state, item) {
    for (let i = 0; i < state.user_report_upload_items.length; i++) {
      if (item === state.user_report_upload_items[i] + '') {
        state.user_report_upload_items.splice(i, 1)
        break
      }
    }
  },
  empty_user_report_upload_items (state) {
    state.user_report_upload_items = []
  },
  set_category_data (state, cdata) {
    state.category_data = cdata
  },
  set_building_data (state, bdata) {
    state.building_data = bdata
  },
  set_order_detail (state, data) {
    state.order_detail = data
  },
  set_user_info (state, data) {
    state.user_info = data
  },
  set_holidays (state, bdata) {
    state.holidays = bdata
  }
}
